let mixin = {
  props: {},
  mounted() {},
  computed: {
    ishistory: function() {
      return this.$store.state.daping.ishistorytime;
    },
    timerangarr: function() {
      return this.$store.state.daping.timepick;
    }
  },
  methods: {

    gethuduro(rotation) {
      return [
        (rotation[0] * Math.PI) / 180.0,
        (rotation[1] * Math.PI) / 180.0,
        (rotation[2] * Math.PI) / 180.0
      ];
    },

    gethudu(position) {
      return [(position[0] * Math.PI) / 180.0, (position[1] * Math.PI) / 180.0];
    },

    flyto() {
      this._earth.cameraViewManager.views[0].flyTo();
    },

    flyaround() {
      this._earth.camera.flyAround(
        [(118.2101397 * Math.PI) / 180, (35.6109411 * Math.PI) / 180, 0.67],
        1826242,
        [(17.0 * Math.PI) / 180, (-19 * Math.PI) / 180, 0],
        0.5,
        0.1
      );

      // this._earth.camera.flyAround(
      //   [(116.4424863 * Math.PI) / 180, (39.8420112 * Math.PI) / 180, 6],
      //   1000,
      //   [(360.0 * Math.PI) / 180, (-22 * Math.PI) / 180, 0],
      //   0.5,
      //   0.1
      // );
    }
  }
};

export default mixin